<?php
session_start();
require '../nette/Nette/loader.php';
require '../db.php';
require '../localization/lang.php';
require '../core/core.sanitizer.php';
require '../core/core.security.php';
require '../core/core.dfs.php';
require '../visual/visual.dfs.php';

$login=new core_security;
if ($login->checklogin()=="OK" AND $_SESSION['role']<=1) {

$node = new core_dfs_node($spojeni, 'tree');
echo $node->move_subtree_validate($_POST['what'],$_POST['where']);
$node->move_subtree($_POST['what'],$_POST['where']);
}
